﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Medianamik.Core.ImportExport
{
   public  class Medianamik2RecordInstanceAdapter : RecordInstance 
    {

       private Medianamik.Core.NodeInstance _nodeInstance;
       protected Medianamik.Core.NodeInstance NodeInstance
       {
           get;
           private set;
       }
        public Medianamik2RecordInstanceAdapter(NodeInstance pNodeInstance)
        {
            NodeInstance = pNodeInstance;
        }

        public override Guid NodeId
        {
            get { return NodeInstance.Node.ID; }
        }

        public override Guid NodeInstanceId
        {
            get { return NodeInstance.InternalID; }
        }

        public override bool IsActive
        {
            get { return NodeInstance.IsActive; }
        }

        public override string CultureName
        {
            get { return NodeInstance.Culture.Name; }
        }

        public override DateTime CreatedOn
        {
            get
            {
                return NodeInstance.CreatedOn;
            }
           
        }
    }
}
